import http from '@/utils/http'

export const getLoginAPI = ({account,password})=>{
    return http({
        url:'/login',
        method:'POST',
        data:{
            account,
            password
        }
    })
}

export const getLikeListAPI = ({ limit = 4 }) => {
    return http({
      url:'/goods/relevant',
      params: {
        limit 
      }
    })
  }

  /*
params: {
  orderState:0,
  page:1,
  pageSize:2
}
*/
interface params{
    orderState:Number,
    page:Number,
    pageSize:Number
}

export const getUserOrderAPI = (params:params) => {
    return http({
      url:'/member/order',
      method:'GET',
      params:params
    })
  }